﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 应收/应付类别表
    /// </summary>
    public class CategoryInfo
    {
        /// <summary>
        /// 获取或设置类别的唯一标识符。
        /// 通常是一个自增的主键。
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

        public int CategoryID { get; set; }

        /// <summary>
        /// 类别
        /// </summary>

        [MaxLength(50)]
        public string CategoryName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [MaxLength(255)]
        public string Description { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public int? ParentCategoryId { get; set; }

    }
}
